﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Singer.Shared
{
    public class CoreException : Exception
    {
        public string Code { get; set; }

        public CoreException(string message, ErrorCode errorCode = ErrorCode.Normal) : base(message)
        {
            Code = errorCode.ToString();
        }

        public CoreException(string message, string errorCode) : base(message)
        {
            Code = errorCode;
        }
    }
}
